package com.ruoyi.patrol.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 巡查线路对象,App使用
 * 
 * @author mlb
 * @date 2022-11-14
 */
public class PtLineApp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 线路ID */
    private Long lineId;

    /** 排班ID */
    private Long scheduleId;

    /** 线路名称 */
    private String lineName;

    private Date date;

    /** 线路类别：1、行政人员；2、安保人员 */
    private Integer lineType;

    /** 异常巡逻点位的个数，0个表示都正常 */
    private Integer patrolResult;

    /** 排班线路执行状态：0、未执行，1、正在进行，2、执行完成 */
    private Integer patrolStatus;

    private List<PtLineSiteApp> lineSites;

    /** 线路所属学校 */
    private Long schoolId;

    /** 点位半径 */
    private int clockingRadius;

    public Integer getPatrolStatus() {
        return patrolStatus;
    }

    public void setPatrolStatus(Integer patrolStatus) {
        this.patrolStatus = patrolStatus;
    }

    public Integer getPatrolResult() {
        return patrolResult;
    }

    public void setPatrolResult(Integer patrolResult) {
        this.patrolResult = patrolResult;
    }

    public Long getLineId() {
        return lineId;
    }

    public void setLineId(Long lineId) {
        this.lineId = lineId;
    }

    public void setLineName(String lineName)
    {
        this.lineName = lineName;
    }

    public String getLineName() 
    {
        return lineName;
    }
    public void setLineType(Integer lineType) 
    {
        this.lineType = lineType;
    }

    public Integer getLineType() 
    {
        return lineType;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }

    public List<PtLineSiteApp> getLineSites() {
        return lineSites;
    }

    public void setLineSites(List<PtLineSiteApp> lineSites) {
        this.lineSites = lineSites;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Long getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(Long scheduleId) {
        this.scheduleId = scheduleId;
    }

    public int getClockingRadius() {
        return clockingRadius;
    }

    public void setClockingRadius(int clockingRadius) {
        this.clockingRadius = clockingRadius;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getLineId())
            .append("lineName", getLineName())
            .append("lineType", getLineType())
            .append("schoolId", getSchoolId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("clockingRadius", getClockingRadius())
            .toString();
    }



}
